package com.ecnu.jiagou.damai.mapper;

import java.util.List;

import com.ecnu.jiagou.damai.entity.Address;

import com.ecnu.jiagou.damai.entity.Person;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ManageMapper {

    List<Address> getAddress(Integer userid);

    Address getAddressById(Integer addressid);
    
    boolean addAddress(Address address);

    boolean updateAddress(Address address);

    boolean deleteAddress(Integer addressid);

    List<Person> getPerson(Integer userid);

    boolean addPerson(Person person);

    boolean deletePerson(Integer personid);
}
